package com.hzw.openapi.ui.base

import android.app.Activity
import android.widget.Toast
import com.hzw.openapi.utils.StateMessageCallback

interface AreYouSureCallback {

    fun proceed()

    fun cancel()
}

fun Activity.displayToast(
    message:String,
    stateMessageCallback: StateMessageCallback
){
    Toast.makeText(this,message, Toast.LENGTH_LONG).show()
    stateMessageCallback.removeMessageFromStack()
}
